package com.jijidom.order.exception;

import com.jijidom.order.enums.ResultEnum;

/**
 * @ClassName
 * @Description TODO
 * @Author JinTao
 * @Date 2018/9/11 16:04
 * @Version 1.0
 **/
public class OrderException extends  RuntimeException {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@SuppressWarnings("unused")
	private Integer code;
    public OrderException(Integer code, String message){
        super(message);
        this.code = code;
    }
    public OrderException(ResultEnum resultEnum){
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }
}
